﻿@model List<SklepISI.Core.Models.OrderModel>

@{
    ViewBag.Title = "ListOrders";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h3>Lista zamówień:</h3>
@foreach(var order in Model)
{
    <a class="btn @(order.Status.ID == 1 ? "btn-success" : (order.Status.ID == 2 ? "btn-info" : "btn-inverse") )" style="width: 100%; text-align: left;"  href="@Url.Action("OrderDetails", new{ @Id = order.Id })">Zamówienie nr: @order.Id - Status: @order.Status.Name</a>
}
